package com.java.demo.component;

import com.java.demo.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(10)
public class UserBeans2 {

    @Bean
    public User getuserbyname() {
        User user = new User();
        user.setUid(2);
        user.setName("王五");
        user.setPassword("123456");
        user.setAge(20);
        return user;
    }



}
